package org.ns.framework.webmvc.anns;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.ANNOTATION_TYPE, ElementType.TYPE })
@Controller
@ResponseBody
@Inherited
@Documented
public @interface ApiController {

	@AliasFor(annotation = Controller.class)
	String value() default "";

	// 之后增加 [针对每个接口可以选择不一样的应答模式]
	// Class<? extends ResponseEntityKey> entityKeyType() default
	// ResponseEntityKey.class;
}
